package lab02.test09;

/**
 * Created by Administrator on 2017/10/23.
 */
public class Student {
    //属性：学号、班号、姓名、性别、年龄
    String sno;
    String classNo;
    String name;
    int gender;
    int age;
    //行为：获得学号、获得班号、获得性别、获得姓名、获得年龄
    String getSno(){return sno;}
     String getclassNo(){return classNo;}
     int getgender(){return gender;}
     String getname(){return name;}
     int getage(){return age;}

    @Override
    public String toString() {
        return sno+"|"+classNo+"|"+name+"|"+gender+"|"+age;

    }
}
